#include <iostream>
#include <cstdio>
using namespace std;
int main(){
    char* cmd = "ps aux";
    FILE* rp = popen(cmd,"r");
    char buf[1024 * 200];
    fread(buf,sizeof(char),sizeof(buf),rp);
    cout << buf << endl;
}
